interface Route {
  path: string;
  component: unknown;
  layout?: boolean;
  routes?: any;
  children?: any;
}

const routes: Route[] = [
  {
    path: "/",
    component: "@/pages/home/index",
  },

  { path: "/about", component: "@/pages/about/index", layout: true },
  { path: "/contact", component: "@/pages/contact", layout: true },
  { path: "/announcements", component: "@/pages/announcements/index" },
  {
    path: "/login",
    component: "@/pages/login/identity/index",
  },
  {
    path: "/identity",
    component: "@/pages/login/identity-form/index",
  },
  {
    path: "/identity/success",
    component: "@/pages/login/identity-success/index",
  },
  {
    path: "/identity/verification",
    component: "@/pages/login/identity-verification/index",
  },
  {
    path: "/myprofile/home",
    component: "@/pages/myprofile/myprofile-home/index",
  },
  {
    path: "/myprofile/info",
    component: "@/pages/myprofile/myprofile-info/index",
  },
  {
    path: "/register",
    component: "@/pages/register-license/register/index",
  },
  {
    path: "/register/details",
    component: "@/pages/register-license/register-details/index",
  },
  {
    path: "/register/success",
    component: "@/pages/register-license/register-success/index",
  },
  {
    path: "terms",
    component: "@/pages/terms",
  },
  {
    path: "/myRegistered-lpn/list",
    component: "@/pages/my-registered-lpn/registered-lpn-list/index",
  },
  {
    path: "/myRegistered-lpn/edit",
    component: "@/pages/my-registered-lpn/edit-my-lpn/index",
  },
  {
    path: "/myRegistered-lpn/edit/confirm",
    component: "@/pages/my-registered-lpn/confirm-edit-my-lpn/index",
  },
  {
    path: "/myRegistered-lpn/success",
    component: "@/pages/my-registered-lpn/submitted-success/index",
  },
  {
    path: "/mybooking-records",
    component: "@/pages/my-booking-records/my-booking-records/index",
  },
  {
    path: "/mybooking-records/details",
    component: "@/pages/my-booking-records/booking-records-details/index",
  },
  {
    path: "/mybooking-records/modify",
    component: "@/pages/my-booking-records/modify-booking/index",
  },
  {
    path: "/carpark-booking/home",
    component: "@/pages/create-carpark-booking/carpark-booking-home/index",
    // 使用 children 来配置子路由
  },
  {
    path: "/carpark-booking/home/create",
    component: "@/pages/create-carpark-booking/create-booking/index",
    // 使用 children 来配置子路由
  },

  {
    path: "/carpark-booking/home/create-monthly/submited",
    component: "@/pages/create-carpark-booking/monthly/booking-submitted",
    // 使用 children 来配置子路由
  },
  {
    path: "/carpark-booking/home/create-monthly",
    component: "@/pages/create-carpark-booking/monthly/index",
    routes: [
      {
        path: "next",
        component: "@/pages/create-carpark-booking/monthly/NextMonthly",
      },
      {
        path: "submit",
        component: "@/pages/create-carpark-booking/monthly/SubmitMonthly",
      },
    ],
    // 使用 children 来配置子路由
  },
  {
    path: "/daily-booking/success",
    component: "@/pages/create-carpark-booking/daily/booking-success/index",
  },
  {
    path: "/monthly-booking/success",
    component: "@/pages/create-carpark-booking/monthly/booking-success/index",
  },
  {
    path: "/monthly-booking/submitted",
    component: "@/pages/create-carpark-booking/monthly/booking-submitted/index",
  },
  {
    path: "/vip-booking/required",
    component: "@/pages/vip-booking/vip-booking-require/index",
  },

  {
    path: "/vip-booking/payment",
    component: "@/pages/vip-booking/vip-payment-information/index",
  },
  {
    path: "/payment/monthly/payment-info",
    component: "@/pages/payment/monthly/payment-info/index",
  },
  { path: "/*", component: "@/pages/404", layout: false },
];

export default routes;
